package com.sample.app;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Triangle implements Serializable {

    private int a;
    private int b;
    private int c;
    private Set<TriangleType> description;
    private String error;

    public Triangle() {
    }

    public Triangle(int a, int c, int b) {
        this.a = a;
        this.c = c;
        this.b = b;
    }

    public void addDescription(TriangleType type) {
        getDescription().add(type);
    }

    public Set<TriangleType> getDescription() {
        if (description == null) {
            description = new HashSet<TriangleType>();
        }
        return description;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public int getC() {
        return c;
    }

    public void setC(int c) {
        this.c = c;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
